/* 初始化body */
body {
    min-width: 320px;
    max-width: 540px;
    margin: 0 auto;
    background-color: #fafafc;
    font-family: PingFangSC-regular,Tahoma,"Lucida Grande",Verdana,"Microsoft Yahei",STXihei,hei;
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}
ul,li {
    list-style: none;
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
    color: #222;
}
h1,h2,h3,h4,h5,h6 {
    margin: 0;
    padding: 0;
}
/*点击高亮我们需要清除清除 设置为transparent完成透明*/
* {
    -webkit-tap-highlight-color: transparent;
}
/*在移动端浏览器默认的外观在iOS上加上这个属性，才能给难喝输入框自定义样式*/
input {
    -webkit-appearance: none;
}
/*禁用长按页面时的弹出菜单*/
img,a {
    -webkit-touch-callout: none;
}

/* 搜索框区域 */
.search_index {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 44px;
    padding-left: 12px;
    box-sizing: border-box;
    align-items: center;
    z-index: 20;
}
.search_index .search {
    display: flex;
    align-items: center;
    flex: 1;
    height: 28px;
    padding: 2px 5px;
    border-radius: 16px;
    box-sizing: border-box;
    background-color: white;
}
.search_index .search span {
    position: relative;
    padding-left: 35px;
    font-size: 15px;
    line-height: 18px;
    color: #666;
}
.search_index .search span::after {
    display: block;
    position: absolute;
    left: 10px;
    top: 2px;
    content: "";
    width: 14px;
    height: 14px;
    background: url(../images/sprite.png) no-repeat 0px 0px;
    background-size: 21px;
}
.search_index .login {
    width: 51px;
    height: 44px;
    padding-right: 4px;
}
.search_index .login a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 51px;
    height: 44px;
    padding-right: 4px;
    font-size: 12px;
    line-height: 12px;
    color: #666;
    text-decoration: none;
}
.search_index .login a::after {
    display: block;
    content: "";
    width: 22px;
    height: 22px;
    background: url(../images/sprite.png) no-repeat 0 -36px;
    background-size: 21px;
    order: -1;
}

/* 焦点图部分 */
.focus {
    position: relative;
    width: 100%;
    padding: 0 25%;
    border-bottom-left-radius: 100%;
    border-bottom-right-radius: 100%;
    transform: translateX(-16.66666%);
    overflow: hidden;
}
.focus a {
    display: block;
}
.focus a img {
    display: block;
    width: 100%;
}
.focus::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 60px;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0));
}

/* local_nav部分 */
.local_nav {
    display: flex;
    position: relative;
    height: 64px;
    margin: -52px 12px 10px;
    padding: 4px 0 8px;
    border-radius: 8px;
    background-color: #fff;
}
.local_nav li {
    flex: 1;
}
.local_nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
}
.local_nav li a i {
    width: 40px;
    height: 40px;
    background: url(../images/localnav_bg.png) no-repeat 0 0;
    background-size: 40px;
}
.local_nav li:nth-child(2) a i {
    background-position: 0 -40px;
}
.local_nav li:nth-child(3) a i {
    background-position: 0 -80px;
}
.local_nav li:nth-child(4) a i {
    background-position: 0 -120px;
}
.local_nav li:nth-child(5) a i {
    background-position: 0 -160px;
}
.local_nav li a span {
    font-size: 12px;
}

/* 主导航部分 */
.nav {
    margin: 0 12px;
    border-radius: 12px;
    overflow: hidden;
}
.nav .nav_common {
    display: flex;
    border-bottom: 1px solid #fff;
    background-image: linear-gradient(to right, #4b8fed, #53bced);
}
.nav .nav_common:nth-child(3) {
    border: none;
}
.nav .nav_common a {
    padding: 25.6px 0;
    line-height: 14px;
    color: #fff;
}
/* 使用flex，改变子项所占的份数 */
.nav .nav_common a:nth-child(1) {
    flex: 1.347;
    padding-left: 12px;
    background: url(../images/flight.png) no-repeat right bottom;
    background-size: auto 34px;
}
.nav .nav_common a:nth-child(2) {
    background: url(../images/train.png) no-repeat left bottom;
    background-size: 37px;
}
/* n从0开始，选择的是2、3、4.。。 */
.nav .nav_common a:nth-child(n+2) {
    flex: 1;
    text-align: center;
    border-left: 1px solid #fff;
}
.nav .nav_common:nth-child(1) {
    background-image: linear-gradient(to right,#fa5a56,#fb8550 56%);
}
.nav .nav_common:nth-child(1) a:nth-child(3) {
    flex: 2.03;
    background-image: url(../images/hot_sale.png), linear-gradient(to right, #ffbc49,#ffd252);
    background-position: right bottom;
    background-size: 161px;
    color: #7E3B11;
}
.nav .nav_common:nth-child(1) a:nth-child(1) {
    background-image: url(../images/hotel.png);
    background-size: 73px;
}
.nav .nav_common:nth-child(1) a:nth-child(2) {
    background-image: url(../images/minsu.png);
}
.nav .nav_common:nth-child(3) {
    background-image: linear-gradient(to right, #2FB899, #5ED046);
}
.nav .nav_common:nth-child(3) a:nth-child(1) {
    background-image: url(../images/travel.png);
    background-size: auto 47px;
}
.nav .nav_common:nth-child(3) a:nth-child(2) {
    background-image: url(../images/dingzhi.png);
    background-size: 61px;
}
/* 底部导航区域 */
.subnav_entry {
    display: flex;
    flex-wrap: wrap;
    margin: 0 12px 12px;
}
.subnav_entry li {
    width: 20%;
}
.subnav_entry li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    font-size: 12px;
    line-height: 12px;
}
.subnav_entry li a i {
    width: 28px;
    height: 28px;
    margin: 10px 0 5px;
    background: url(../images/un_ico_subnav2x@v7.33.png) no-repeat 0 0;
    background-size: 28px;
}
.subnav_entry li:nth-child(2) a i {
    background-position: 0 -28px;
}
.subnav_entry li:nth-child(3) a i {
    background-position: 0px -56px;
}
.subnav_entry li:nth-child(4) a i {
    background-position: 0px -84px;
}
.subnav_entry li:nth-child(5) a i {
    background-position: 0px -112px;
}
.subnav_entry li:nth-child(6) a i {
    background-position: 0px -140px;
}
.subnav_entry li:nth-child(7) a i {
    background-position: 0px -168px;
}
.subnav_entry li:nth-child(8) a i {
    background-position: 0px -194px;
}
.subnav_entry li:nth-child(9) a i {
    background-position: 0px -222px;
}
.subnav_entry li:nth-child(10) a i {
    background-position: 0px -250px;
}

/* 热门活动区域 */
.sale_box {
    border-top: 1px solid #dbdbdb;
}
.sale_box .sale_hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 45px;
    padding: 0 8px 1px;
    border-bottom: 1px solid #dbdbdb;
    background-color: #fff;
}
.sale_box .sale_hd h2 {
    position: relative;
    width: 79px;
    height: 15px;
    background: url(../images/hot.png) no-repeat 0 -20px;
    background-size: 79px;
}
.sale_box .sale_hd h2 i {
    position: absolute;
    right: -40px;
    top: 0;
    width: 36px;
    height: 15px;
    background: url(../images/icon-gg@2x.png) no-repeat;
    background-size: 36px;
}
.sale_box .sale_hd a {
    position: relative;
    height: 20px;
    padding: 0 18px 0 12px;
    border-radius: 10px;
    background-image: linear-gradient(to right, #dc5569, #e068c4);
    font-size: 12px;
    color: #fff;
    line-height: 20px;
}
.sale_box .sale_hd a::after {
    position: absolute;
    right: 9px;
    top: 5px;
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}
.sale_box .sale_bd {
    display: flex;
    width: 100%;
}
.sale_box .sale_bd a {
    flex: 1;
    position: relative;
    border-top: 2px solid #f2f2f2;
    border-bottom: 1px solid #f2f2f2;
}
.sale_box .sale_bd a:nth-child(1) {
    border-right: 1px solid #fafafa;
}
.sale_box .sale_bd a img {
    display: block;
    width: 100%;
}
.sale_box .sale_bd a span {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 26px;
    height: 14px;
    border-top-right-radius: 4px;
    background-color: #b3b3b3;
    color: white;
    font-size: 12px;
    line-height: 14px;
}
/* 底部导航区域 */
.bottom_nav {
    display: flex;
    align-items: center;
    width: 100%;
    height: 61px;
    margin-bottom: 5px;
    background-color: #fff;
    border-top: 1px solid #dbdbdb;
    border-bottom: 1px solid #dbdbdb;
}
.bottom_nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 10px 0;
    box-sizing: border-box;
}
.bottom_nav a i {
    display: block;
    width: 22px;
    height: 22px;
    background: url(../images/sprite.png) no-repeat 0 -82px;
    background-size: 22px;
}
.bottom_nav a span {
    display: block;
    height: 18px;
    font-size: 12px;
    text-align: center;
    line-height: 18px;
}
/* 版权区域 */
.copyright {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 52px;
    margin-bottom: 50px;
    font-size: 12px;
}
.copyright .copy_top {
    display: flex;
    justify-content: center;
    height: 24px;
}
.copyright .copy_top a {
    color: #666;
    margin-right: 5px;
    line-height: 24px;
}
.copyright .copy_top a:nth-of-type(2) {
    position: relative;
    margin-right: 15px;
}
.copyright .copy_top a:nth-of-type(2)::after {
    position: absolute;
    right: -10px;
    top: 7px;
    content: "";
    width: 5px;
    height: 5px;
    border-bottom: 1px solid #666;
    border-right: 1px solid #666;
    transform: rotate(45deg);
}
.copyright .copy_top span {
    display: inline-block;
    color: #666;
    line-height: 24px;
    margin-right: 5px;
}
.copyright .copy_bottom {
    display: flex;
    justify-content: center;
    height: 28px;
    padding: 5px 0;
    box-sizing: border-box;
    color: #999;
}
.copyright .copy_bottom a {
    color: #999;
}